﻿using Microsoft.EntityFrameworkCore;

namespace MeterReader.WebApi.Models;

public partial class OldDbContext : DbContext
{
    public DbSet<TMeter> TMeters { get; set; }

    public OldDbContext(DbContextOptions<OldDbContext> options)
        : base(options) { }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        modelBuilder.Entity<TMeter>(entity =>
        {
            entity.ToTable("T_Meters");
            entity.Property(e => e.Id).HasColumnName("ID");
        });
    }

}
